package com.zbkj.common.response.traceability;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 批次信息响应对象
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: xiaolic
 * +----------------------------------------------------------------------
 */
@Data
@ApiModel(value = "BatchesInfoResponse对象", description = "批次信息响应对象")
public class BatchesInfoResponse {
    
    @ApiModelProperty(value = "批次主键ID")
    private Long id;
    
    @ApiModelProperty(value = "商家ID")
    private Integer merchantId;
    
    @ApiModelProperty(value = "商家名称")
    private String merchantName;
    
    @ApiModelProperty(value = "商品ID")
    private Integer productId;
    
    @ApiModelProperty(value = "商品名称")
    private String productName;
    
    @ApiModelProperty(value = "批次名称")
    private String batchName;
    
    @ApiModelProperty(value = "开始号段")
    private Long startSerial;
    
    @ApiModelProperty(value = "结束号段")
    private Long endSerial;
    
    @ApiModelProperty(value = "生产日期/出生日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date productionDate;
    
    @ApiModelProperty(value = "批次状态：0-待处理，1-生产中，2-已完成")
    private Integer status;
    
    @ApiModelProperty(value = "批次状态描述")
    private String statusDesc;
    
    @ApiModelProperty(value = "排序字段，值越小越靠前")
    private Integer sortOrder;
    
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;
    
    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;
}
